package com.leonzhangxf.guice.interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * A method interceptor for log bill actions.
 *
 * @author leonzhangxf
 */
public class BillInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("The interceptor invoked");

        return methodInvocation.proceed();
    }
}
